package com.atguigu.common.constant;

import lombok.Getter;

/**
 * @author zhuguanming
 * @date 2021/5/9
 */
public class WareConstant {

    @Getter
    public enum PurchaseDetailStatusEnum{
        // 采购需求状态枚举
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),
        BUYING(2,"正在采购"),FINISHED(3,"已完成"),
        FAIL(4,"采购失败");
        private final Integer code;
        private final String msg;

        PurchaseDetailStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    @Getter
    public enum PurchaseStatusEnum{
        // 采购单状态枚举
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),
        RECEIVED(2,"已领取"),FINISHED(3,"已完成"),
        ERROR(4,"有异常");
        private final Integer code;
        private final String msg;

        PurchaseStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
